import { S } from '../../s';
import { IPSDEWizardStep } from './ipsdewizard-step';
import { IPSLanguageRes } from '../../res/ipslanguage-res';
import { IPSSysCss } from '../../res/ipssys-css';
import { IPSSysImage } from '../../res/ipssys-image';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSDEWizardStepImpl
  extends PSModelObjectImpl
  implements IPSDEWizardStep
{
  protected pssysimage: IPSSysImage;
  getPSSysImage(): IPSSysImage | null {
    return (
      this.pssysimage ||
      (this.pssysimage = this.fillObjectModel(
        S._27b,
        this.M.getPSSysImage,
        S._2ad,
      ) as IPSSysImage)
    );
  }

  get stepTag(): string {
    return this.M.stepTag;
  }

  get subTitle(): string {
    return this.M.subTitle;
  }

  protected subtitlepslanguageres: IPSLanguageRes;
  getSubTitlePSLanguageRes(): IPSLanguageRes | null {
    return (
      this.subtitlepslanguageres ||
      (this.subtitlepslanguageres = this.fillObjectModel(
        S._276,
        this.M.getSubTitlePSLanguageRes,
        S._307,
      ) as IPSLanguageRes)
    );
  }

  get title(): string {
    return this.M.title;
  }

  protected titlepslanguageres: IPSLanguageRes;
  getTitlePSLanguageRes(): IPSLanguageRes | null {
    return (
      this.titlepslanguageres ||
      (this.titlepslanguageres = this.fillObjectModel(
        S._276,
        this.M.getTitlePSLanguageRes,
        S._2b1,
      ) as IPSLanguageRes)
    );
  }

  protected titlepssyscss: IPSSysCss;
  getTitlePSSysCss(): IPSSysCss | null {
    return (
      this.titlepssyscss ||
      (this.titlepssyscss = this.fillObjectModel(
        S._278,
        this.M.getTitlePSSysCss,
        S._334,
      ) as IPSSysCss)
    );
  }

  get enableLink(): boolean {
    return this.M.enableLink;
  }
  get cls(): string {
    return 'PSDEWizardStepImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._213) return true;
    return super.instanceof(cls);
  }
}
